#include "mainwindow.h"
#include <QApplication>
#include <QGraphicsView>
#include <QTextCodec>

#include "curves/curveitem.h"
#include "curves/nonrationalcurveitem.h"
#include "handles/handle.h"
#include "curvescene.h"
//#include "curvelib/icurve.h"
//#include "curvelib/Bezier/bezier.h"
//#include "curvelib/Bezier/bezierspline.h"
//#include "curvelib/NS/ncs.h"

//#include "BSpline/bspline.h"

//using namespace curveLib::bezier;

int main(int argc, char *argv[])
{
    QApplication app(argc,argv);

    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("Latin2"));
    QTextCodec::setCodecForTr(QTextCodec::codecForName("Latin2"));

    CurveScene scene;

    MainWindow mainWindow;
    mainWindow.setScene(&scene);
    mainWindow.getScene()->SetMode(CurveScene::Macro);
    mainWindow.show();
    return app.exec();
}
